import time
class Nint(int):
    def __new__(cls,x,y=0):
        if type(x) is str:
            for i in x:
                y+=ord(i)
            return y
        else :
            return int(x)


print(Nint(123))
print(Nint(1.5))
print(Nint('A'))
print(Nint('FishC'))
print('——————————————————')
class Nint(int):
    def __new__(cls,x=0):
        if type(x) is str:
            y=0
            for i in x:
                y+=ord(i)
            x=y
        return int.__new__(cls,x)
print(Nint(123))
print(Nint(1.5))
print(Nint('A'))
print(Nint('FishC'))
                

print(time. process_time())






